package com.boang.entity;

/*
  @author: 13813
  @date: 2024/11/20 9:24
*/
public abstract class Account {
    public String cardNo;
    public String passwd;
    public int balance;

    public Account(String cardNo, String passwd, int balance) {
        this.cardNo = cardNo;
        this.passwd = passwd;
        this.balance = balance;
    }

    public void save(int money) {
        balance += money;
    }

    public abstract void deposit(int money);

}
